package com.bobbygu.googlearchitecture.database

import android.arch.persistence.room.Database
import android.arch.persistence.room.RoomDatabase
import com.bobbygu.googlearchitecture.bean.Story
import com.bobbygu.googlearchitecture.bean.StoryDao

/**
 *
 * # time: 2017/12/20 8:47
 * # e-mail: gubojun@csii.com.cn
 * @author 顾博君
 * @since 1.0
 */
@Database(entities = [(Story::class)], version = 1)
abstract class AppDatabase : RoomDatabase() {
    companion object {
        val TAG = "bobby_story_db"
    }

    abstract fun storyDao(): StoryDao
}